package com.taobao.ui.widget;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;

import com.taobao.tools.Binding;

public class SystemWidget extends CommonWidget {

	@Override
	public String getID() {
		return "com.taobao.ui.widget.SystemWidget";
	}
	
    /**
     * Create the composite.
     * 
     * @param parent
     * @param style
     */
    public SystemWidget(Composite parent, int style) {
        super(parent, style);
        GridLayout gridLayout_5 = new GridLayout(1, false);
        gridLayout_5.marginHeight = 0;
        gridLayout_5.marginWidth = 0;
        setLayout(gridLayout_5);

        Group group = new Group(this, SWT.NONE);
        group.setText("\u7CFB\u7EDF\u8BBE\u7F6E");
        GridLayout gridLayout_3 = new GridLayout(1, false);
        gridLayout_3.verticalSpacing = 0;
        group.setLayout(gridLayout_3);
        GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
        gridData.heightHint = 235;
        group.setLayoutData(gridData);

        Composite composite_3 = new Composite(group, SWT.NONE);
        GridLayout gridLayout = new GridLayout(2, false);
        gridLayout.horizontalSpacing = 25;
        composite_3.setLayout(gridLayout);
        composite_3.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

        Button button = new Button(composite_3, SWT.CHECK);
        button.setText("\u81EA\u52A8\u63A5\u4EFB\u52A1");
//        Binding.binding(getThis(SystemWidget.class),  button, Binding.GROUP_CHECK, Filter.class, "maxPrice");

        Composite composite_4 = new Composite(group, SWT.NONE);
        composite_4.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

        Composite composite_5 = new Composite(group, SWT.NONE);
        GridLayout gridLayout_2 = new GridLayout(2, false);
        gridLayout_2.horizontalSpacing = 25;
        composite_5.setLayout(gridLayout_2);
        composite_5.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

        Button button_1 = new Button(composite_5, SWT.CHECK);
        button_1.setText("\u81EA\u52A8\u8F93\u5C0F\u53F7");

        Composite composite_7 = new Composite(group, SWT.NONE);
        composite_7.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

        Composite composite_8 = new Composite(group, SWT.NONE);
        GridLayout gridLayout_6 = new GridLayout(2, false);
        gridLayout_6.horizontalSpacing = 25;
        composite_8.setLayout(gridLayout_6);
        composite_8.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

        Button btnip = new Button(composite_8, SWT.CHECK);
        btnip.setText("\u81EA\u52A8\u6362IP");

        Composite composite_9 = new Composite(group, SWT.NONE);
        composite_9.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

        Composite composite_10 = new Composite(group, SWT.NONE);
        GridLayout gridLayout_7 = new GridLayout(2, false);
        gridLayout_7.horizontalSpacing = 25;
        composite_10.setLayout(gridLayout_7);
        composite_10.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

        Composite composite_6 = new Composite(composite_10, SWT.NONE);
        composite_6.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, true, 1, 1));
        GridLayout gridLayout_4 = new GridLayout(2, false);
        gridLayout_4.marginWidth = 0;
        gridLayout_4.marginHeight = 0;
        composite_6.setLayout(gridLayout_4);

        Button button_2 = new Button(composite_6, SWT.CHECK);
        button_2.setText("\u8BED\u97F3");

        Button button_3 = new Button(composite_6, SWT.CHECK);
        button_3.setText("\u58F0\u97F3");
    }
}
